package controller

import (
	"server/app/common"

	"github.com/beego/beego/v2/server/web"
)

type ErrorController struct {
	web.Controller
}

func (e *ErrorController) Error404() {
	e.Data["json"] = common.Response{
		Code: 404,
		Msg:  "接口不存在",
		Data: []string{},
	}
	e.ServeJSON()
}
